
#include "nane/SoundSystem/SoundBufferImpl_.h"
#include "nane/core/assert.h"

namespace nane
{
    ////////////////////////////////////////////////////////////////////////////////////////////////
    SoundBuffer::Implementation::Implementation( SoundSystem::Implementation* _creator, ISoundBuffer* _interface
                                                 , ESoundFormat _format, uint32 _frequency, uint16 _channels, uint16 _bitsPerSample, uint32 _size )
        : SubSystemProductImpl<SoundBuffer::Implementation, SoundSystem::Implementation, ISoundBuffer*>( _creator, _interface )
        , format( _format )
        , frequency( _frequency )
        , channels( _channels )
        , bitsPerSample( _bitsPerSample )
        , size( _size )
    {
        NANE_ASSERT( interface != NULL, "ISoundBuffer interface must be valid" );
    }
    ////////////////////////////////////////////////////////////////////////////////////////////////
}   // namespace nane
